import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


class LoadingWidget extends StatefulWidget {
  // 私钥

  LoadingWidget({
    super.key,
  });

  @override
  _LoadingWidgetState createState() => _LoadingWidgetState();
}

class _LoadingWidgetState extends State<LoadingWidget>  {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Positioned(
        left: 0,
        right: 0,
        bottom: 0,
        top: 0,
        child: Container(
          width: double.infinity,
          height: double.infinity,
          color: Colors.transparent,
          child: Center(
            child: Container(
              padding: EdgeInsets.all(14.w),
              decoration: BoxDecoration(
                  color: Colors.black.withOpacity(0.8),
                  borderRadius: BorderRadius.all(Radius.circular(12.w))),
              child: Image.asset(
                'assets/images/common/loading2.gif',
                width: 60.w,
                height: 60.w,
              ),
            ),
          ),
        ));
  }



}
